﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ProducerManage.aspx.cs" Inherits="GreatB2C.Web.Manage.SystemSet.Shop.ProducerManage" %>

<%@ Register Assembly="AspNetPager" Namespace="GreatB2C" TagPrefix="pager" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>厂商管理</title>
    <link href="../../../App_Themes/AdminDefaultTheme/Guide.css" type="text/css" rel="stylesheet" />
    <link href="../../../App_Themes/AdminDefaultTheme/index.css" type="text/css" rel="stylesheet" />
    <link href="../../../App_Themes/AdminDefaultTheme/xtree.css" type="text/css" rel="stylesheet" />
    <link href="../../../App_Themes/AdminDefaultTheme/MasterPage.css" type="text/css"
        rel="stylesheet" />

    <script type="text/javascript" src="../../../Resource/Script/pagebase.js"></script>
    
	<link rel="stylesheet" type="text/css" href="../../../Resource/jqueryEasyui/themes/default/easyui.css" />
	<link rel="stylesheet" type="text/css" href="../../../Resource/jqueryEasyui/themes/icon.css" />
	<script type="text/javascript" src="../../../Resource/jqueryEasyui/jquery-1.4.4.min.js"></script>
	<script type="text/javascript" src="../../../Resource/jqueryEasyui/jquery.easyui.min.js"></script>
	<script type="text/javascript">
	    window.onload = function() {
	        var type = GetParamValue("ProducerTitle");
	        if (type != "") {
	            document.getElementById("type").innerHTML = "&nbsp;&gt;&gt; " + type;
	        }
	    }
	</script>
</head>
<body>
    <form id="form1" runat="server">
    <div >
        <span style="height: 25px;line-height:25px;">
            <span>
                <img src="../../../App_Themes/AdminDefaultTheme/Images/localGIF.gif" align="absmiddle"
                    style="border-width: 0px;" />后台管理 </span><span>&gt;&gt; </span><span><a>系统设置</a></span><span>
                        &gt;&gt; </span><span><a>商店配置</a></span><span> &gt;&gt; </span><span><a>厂商管理</a></span><span id="type"></span></span>
                        
    </div>
    <div>
        <table class="border" cellspacing="1" cellpadding="0" border="0" style="width: 100%;">
            <tr class="tdbg" align="center">
                <td valign="top">
                    <asp:DataGrid ID="dgData" CssClass="border" runat="server" Width="100%" HeaderStyle-VerticalAlign="Top"
                        AutoGenerateColumns="False"  BorderWidth="0px"
                        PageSize="15" AllowPaging="True" onitemdatabound="dgData_ItemDataBound" 
                        onitemcommand="dgData_ItemCommand">
                        <PagerStyle Visible="False" />
                        <ItemStyle Height="25px" CssClass="tdbg" />
                        <Columns>
                            <asp:TemplateColumn>
                                <HeaderTemplate>
                                    <input type='checkbox' id='chkAll' name='chkAll' onclick='javascript:doCheckAll();' />
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <input type='checkbox' id='chk_<%# DataBinder.Eval(Container, "DataItem.ProducerID") %>'
                                        name='chk_<%# DataBinder.Eval(Container, "DataItem.ProducerID") %>' onclick='javascript:doCheckSingle(<%# "\"" + DataBinder.Eval(Container, "DataItem.ProducerID") + "\"" %>)' />
                                </ItemTemplate>
                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" />
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:TemplateColumn>
                            <asp:BoundColumn DataField="ProducerID" HeaderText="编号" Visible="false">
                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundColumn>
                            <asp:BoundColumn DataField="ProducerName" HeaderText="厂商名称">
                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundColumn>
                            <asp:BoundColumn DataField="ProducerShortName" HeaderText="厂商缩写">
                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="120px" />
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundColumn>
                            <asp:BoundColumn DataField="ProducerType" HeaderText="厂商分类">
                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="100px" />
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundColumn>
                            <asp:BoundColumn DataField="Passed" HeaderText="已启用">
                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="60px" />
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundColumn>
                            <asp:TemplateColumn HeaderText="属性">
                                <ItemTemplate>
                                    <asp:Label ID="lblOnTop" runat="server" Text="固" ForeColor="Blue"></asp:Label>
                                    <asp:Label ID="lblRecommand" runat="server" Text="荐" ForeColor="Green"></asp:Label>
                                </ItemTemplate>
                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="150px" />
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:TemplateColumn>
                            <asp:BoundColumn DataField="Passed" HeaderText="已启用" Visible="false">
                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="60px" />
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundColumn>
                            <asp:BoundColumn DataField="onTop" HeaderText="固顶" Visible="false">
                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="60px" />
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundColumn>
                            <asp:BoundColumn DataField="IsElite" HeaderText="推荐" Visible="false">
                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="60px" />
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundColumn>
                            <asp:TemplateColumn HeaderText="操作">
                                <ItemTemplate>
                                    <asp:LinkButton ID="lbtnAddTradeMark" runat="server" CommandName="TrademarkAdd" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.ProducerID") %>'>增加品牌</asp:LinkButton>&nbsp;
                                    <asp:LinkButton ID="lbtnUpdate" runat="server" CommandName="Update" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.ProducerID") %>'>修改</asp:LinkButton>&nbsp;
                                    <asp:LinkButton ID="lbtnOpen" runat="server" CommandName="Open" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.ProducerID") %>'>启用</asp:LinkButton>&nbsp;
                                    <asp:LinkButton ID="lbtnTop" runat="server" CommandName="Top" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.ProducerID") %>'>固顶</asp:LinkButton>&nbsp;
                                    <asp:LinkButton ID="lbtnRecommand" runat="server" CommandName="Recommand" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.ProducerID") %>'>推荐</asp:LinkButton>&nbsp;
                                    <asp:LinkButton ID="lbtnDelete" runat="server" CommandName="Delete" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.ProducerID") %>'>删除</asp:LinkButton>
                                </ItemTemplate>
                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="300px" />
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:TemplateColumn>
                        </Columns>
                        <HeaderStyle VerticalAlign="Top" Height="25px" CssClass="gridtitle"></HeaderStyle>
                    </asp:DataGrid>
                    <asp:Literal ID="litNone" runat="server"></asp:Literal>
                </td>
            </tr>
            <tr class="tdbg" align="center">
                <td align="center">
                    <pager:AspNetPager ID="AspNetPager1" runat="server" AlwaysShow="True" 
                        PageSize="12" Width="600px"
                        OnPageChanged="AspNetPager1_PageChanged" ShowCustomInfoSection="Left" CustomInfoSectionWidth="220px"
                        ShowPageIndexBox="always" PageIndexBoxType="DropDownList" 
                        CustomInfoHTML="第<font color='red'><b>%currentPageIndex%</b></font>页，共%PageCount%页，每页显示%PageSize%条记录" 
                        FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" PrevPageText="上一页">
                    </pager:AspNetPager>
                </td>
            </tr>
        </table>
    </div>
    </form>
    <asp:Literal ID="litScript" runat="server"></asp:Literal>
</body>
</html>
